package com.kiki.stater.controller;

import com.wf.captcha.utils.CaptchaUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by mazeyi on 2020/8/11.
 */
@RestController
@RequestMapping("/api/captcha")
public class CaptchaController {

    @RequestMapping("/get")
    public void captcha(HttpServletRequest request, HttpServletResponse response) throws Exception {
        System.out.println(1111);
        CaptchaUtil.out(request, response);
    }
}
